import 'package:flutter/material.dart';
import 'package:qr_flutter/qr_flutter.dart' deferred as qr_flutter;

class Profile extends StatelessWidget {
  const Profile({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Profile"),
      ),
      body: Container(
        padding: const EdgeInsets.all(10),
        child: Center(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              InkWell(
                child: const CircleAvatar(
                  radius: 50,
                  child: Text("Name"),
                ),
                onTap: () {},
              ),
              FutureBuilder(future: qr_flutter.loadLibrary() ,builder: ((context, snapshot) =>  qr_flutter.QrImage(
                data: "1234567",
                size: 200,
              ))),
            ],
          ),
        ),
      ),
    );
  }
}
